﻿@model JewererBasic.CASTING

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CASTING</legend>

        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.IdProduct)
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Decription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Decription)
            @Html.ValidationMessageFor(model => model.Decription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Mold)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Mold)
            @Html.ValidationMessageFor(model => model.Mold)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Weight)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Weight)
            @Html.ValidationMessageFor(model => model.Weight)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdUnit, "UNIT")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IdUnit", String.Empty)
            @Html.ValidationMessageFor(model => model.IdUnit)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IdType, "TYPE")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IdType", String.Empty)
            @Html.ValidationMessageFor(model => model.IdType)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Production Card", "Index", "Test", new { id = Model.IdProduct }, null)
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
